package com.bi.onlineEducation.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * login
 * @author 
 */
@Entity
@Table(name="login")
@ApiModel(value="com.bi.onlineEducation.domain.Login登录信息表")
@Data
public class LoginPo implements Serializable {
    /**
     * 登录信息主键
     */
    @Id
    @Column(name = "l_id")
    @GeneratedValue(generator = "JDBC")
    @ApiModelProperty(value="登录信息主键")
    private Integer lId;

    /**
     * 登录名
     */
    @Column(name = "login_name")
    @ApiModelProperty(value="登录名")
    private String loginName;

    /**
     * 登录密码
     */
    @Column(name = "password")
    @ApiModelProperty(value="登录密码")
    private String password;

    /**
     * 真实姓名
     */
    @Column(name = "real_name")
    @ApiModelProperty(value="真实姓名")
    private String realName;

    /**
     * 性别
     */
    @Column(name = "gender")
    @ApiModelProperty(value="性别")
    private String gender;

    /**
     * 电子邮箱
     */
    @Column(name = "email")
    @ApiModelProperty(value="电子邮箱")
    private String email;

    /**
     * 联系方式
     */
    @Column(name = "mobile")
    @ApiModelProperty(value="联系方式")
    private String mobile;

    /**
     * 联系地址
     */
    @Column(name = "l_address")
    @ApiModelProperty(value="联系地址")
    private String lAddress;

    /**
     * 余额
     */
    @Column(name = "balance")
    @ApiModelProperty(value="余额")
    private BigDecimal balance;

    /**
     * 权限：[1管理员2教师3普通用户]
     */
    @Column(name = "role")
    @ApiModelProperty(value="权限：[1管理员2教师3普通用户]")
    private Integer role;

    private static final long serialVersionUID = 1L;
}